#ifndef THREADSENSORDATA_H
#define THREADSENSORDATA_H

#include <QThread>
#include <QHostAddress>

class SensorDataProcess;

class ThreadSensorData : public QThread
{
    Q_OBJECT
public:
    explicit ThreadSensorData(QObject *parent = 0);
    ~ThreadSensorData();
    void run();


signals:
    void sigProcessSensorData(QByteArray packet,QHostAddress srcAddress, quint16 srcPort);
    void sigEventNotify(QByteArray eventNotify, QString srcIP, quint16 srcPort);
    void sigInfo(QString info); //需要显示的信息
    void sigError(QString errorInfo);

    void sigPacketNodeToServer(QByteArray datagram,QHostAddress GWIP,
            quint16  GWPort,bool isFromTcp); //GWIP是指Sink的IP，此处即为telnet适配器的IP

public slots:

private:
    SensorDataProcess *sensorDataProcess;


};

#endif // THREADSENSORDATA_H
